package com.core.family.spider.jsoup.onlineOffice;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.select.Elements;

import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * @program: YJ-Admin
 * @description:
 * @author: hl
 * @create: 2024-06-03 15:05
 **/
public class WpsSpider {

    //经实验不可行

    public static List<Map<String, Object>> readWps() throws IOException {
        Document document = Jsoup.connect("https://www.kdocs.cn/l/cd8GNhD6lVXz")
                .get();

        Elements elements = document.select("g text");
        elements.forEach(element -> {
            System.out.println(element.text());
        });
        return null;
    }

    public static void main(String[] args) {
        try {
            readWps();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
